package cn.com.simple.learning.designpattern.structure.adapter;

import java.util.concurrent.locks.ReentrantLock;

/**
 * @author Jianxing.Jia
 * @date 2022/2/10
 * @description 描述信息
 */
public class AdapterTest {
    public static void main(String[] args) {

        WildTurkey wildTurkey = new WildTurkey();

        TurkeyAdapter turkeyAdapter = new TurkeyAdapter(wildTurkey);
        testAdapter(turkeyAdapter);
        ReentrantLock reentrantLock = new ReentrantLock();

    }

    private static void testAdapter(Duck duck) {
        duck.quack();
        duck.fly();
    }

}
